<?php
require_once("classes/Control/GalactusControl.class.php");
$control = new GalactusControl( );
$command = array_slice(explode("/", reset(explode("?", $_SERVER["REQUEST_URI"]))), 3);
$get = ($_SERVER["REQUEST_METHOD"] == "GET" && isset($_GET["params"]) && !empty($_GET["params"]))? $_GET["params"] : NULL;
$post = ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST["params"]) && !empty($_POST["params"]))? $_POST["params"] : NULL;
$files = isset($_FILES["params"])? $_FILES["params"] : NULL;
$control->execute($command, $get, $post, $files);
?>
